@import './variables.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
// 全局通用样式：公共样式

* {
  padding: 0;
  margin: 0;
}

html {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100%;
  font-size: 14px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

#app {
  width: 100%;
  height: 100%;
}

label {
  font-weight: 700;
}

// div, p, h1, h2, h3, h4, h5, h6, ul, li {
//   margin: 0;
//   padding: 0;
// }

li {
  list-style: none;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

// 关闭激活的边框线
a:focus,
a:active {
  outline: none;
}

// 让a自动继承父级元素的属性
// 某些CSS属性不会继承元素父级的计算值，但是我们希望将元素的属性值设置为与其父级的值相同。
// 在这种情况下inherit关键字就派上用场了，它允许不自动继承值的属性继承它。
a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

// 清除浮动
.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}
